home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 March
/
EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso
/
earcd
/
comm1
/
exclutls.lha
/
Comments
/
CleanupComments.doc
< prev
next >
Wrap
Text File
|
1996-01-28
|
7KB
|
217 lines
;Released as public domain 28-Jan-1996 by the author Dave Dustin
CleanupComments v1.1
~~~~~~~~~~~~~~~~~~~~
(c) David Dustin / ECLIPSE Software
13 February, 1994
Preface
~~~~~~~
The programs and files in this distribution are Shareware, but are
also Copyright (c) David Dustin. They may be freely distributed as
long as no more than a minimum fee is charged to cover time and
copying costs. Permission is given for this distribution archive to
be placed into Public-Domain collections such as the Amiga Library run
by Fred Fish.
They may also be made freely available to any REGISTERED Excelsior!
BBS sysops, and may be placed on any Support BBS's for the Excelsior!
BBS.
If you do decide to make use of CleanupComments, you are suggested to
send any form of donation or gift as payment for continued usage.
If you do have any suggestions, bug notes or ideas about this program,
or if you would like to donate something, please let me know.
Write to me at the following address:
David Dustin
30 Richmond Ave
Palmerston North
NEW ZEALAND
Or I can be contacted via:
dave@eclipse.acme.gen.nz
daved@eclipsnz.adsp.sub.org
BBS - +64-6-356-6375 (24hrs, V32bis, V42bis)
EMail to `Dave' on Skynet (Sycom's BBS)
Contents
~~~~~~~~
1. An introduction
2. Requirments
3. Usage
4. History
5. Future
6. Credits / Copyrights
1. An Introduction
~~~~~~~~~~~~~~~~~~~
With Excelsior!, the descriptions of the files are stored in a single
file called _comments in each area. Along with this file is one
called _itemdata.
Every description of a file is stored as ASCII in the _comments file
with a single 0x01 character between each entry. Each time you update
a description, instead of just modifing the original entry in the
_comments file, it tags the replacement description onto the end of
the _comments file.
This ment that if you changed/updated the descriptions of files, or
killed files, there would be a large amount of text that was always
just being skipped over.
Due to Excelsior! keeping track of the start position of the
description in the _itemdata file, you are unable to either edit the
descriptions by hand, or deleted the unwanted descriptions.
Until now.
CleanupComments will by default remove any unwanted descriptions, and
sort the entries in the _comments file into the order that they appear
in the _itemdata file.
CleanupComments will now also allow you to edit the descriptions by
hand, and to have more than the normal 5 line limit on descriptions
UPDATE:
<In the latest betatest version of Excelsior, it would appear Tom has
added a Cleanup function to Maint. I have not tested this yet, but I
would guess it does the same as mine (deletes old, and sorts into
order). I hate it when this happens. But you can still use this to
allow longer than 5 line descriptions.>
2. Requirments
~~~~~~~~~~~~~~~
CleanupComments can be used on any Amiga with V36+, and does not
require Excelsior! to be running to work.
In fact, it would be preferable if no-one was in a file area when
CleanupComments is run, as Excelsior! buffers the list of files when
a user enters a area, and therefore the list will look incorrect.
For this version, you must launch CleanupComments from the same
directory as your SystemData file. From there, the program will sort
out the paths (I hope).
3. Usage
~~~~~~~~~
This version of CleanupComments can only be used from the SHELL.
The arguments available are: CLEANUP/S,CORRECT/S,MBASE/S
CLEANUP/S - This will process all file areas in sequence. It will
delete any unused descriptions from the _comments file,
and will then sort then into the order that the files
appear in the _itemdata file.
CORRECT/S - Using this option means you can edit the _comments file
by hand. You _MUST_ have used the CLEANUP option
before editing the _comments file.
It will use the 0x010A characters in each entry as the
marker for the end of the entry. This means, as long
as you only edit the text itself, and leave the 0x01
and the CR following it alone all will work fine.
MBASE/S - This tells CleanupComments to use the MBase.dat file
instead of FBase.dat, which means that the Message base
will be processed instead of the files base. This was
added because files can also be uploaded to a message
area with no effect on the system.
As of v1.1, if you run CleanupComments directly in a files directory
area (ie. _itemdata and _comments are present in the same directory),
then only that directory will be processed. This allows you to change
the comments in one area, and quickly correct the files without having
to process all the areas at the same time.
4. History
~~~~~~~~~~~
v0.1 6 February 94
* First release.
v0.5 6 February 94
* Made use of SystemData and FBase.dat file for paths and areas.
This means you can process all areas in one go
v1.0 7 February
* Added CORRECT option
* Added MBASE option
* Fixed mistake in the version string (0.5 said 1.0)
* Cleaned up text output.
- Now uses PutStr() for buffered output to StdOut()
- Added CR's to the end of each line (whoops)
- Highlighted Directories
- Actually tells you what it's doing
* Changed from CD'd to new directories to just reading the file
using a full path. Increased speed dramaticly
v1.1 13 February
* What can I say but: v1.0 was completly stuffed. It didn't
work in the slighest. This version fixes all known bugs.
* Now highlights UNet areas and won't try to process them
* Added checking for local _itemdata and _comments file, thus
allowing processing of a single area
5. Future
~~~~~~~~~~
- I will add FIDO area checking when I get a chance to find out what
bit is set in the ?Base.dat file.
- There is very little I think I could add. If you can think of
something, TELL ME!
6. Credits / Copyrights
~~~~~~~~~~~~~~~~~~~~~~~~
Main code - David Dustin
Bug testing - Renze de Ruiter
CleanupComments - (c) 1994 Eclipse Software
Excelsior! BBS - (c) 1992-94 Sycom
Kickstart/Workbench - (c) 1985-94 Commodore-Amiga, Inc.